package com.ztgf.shopping.api.cms.shop;

import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.common.constant.Result;
import com.ztgf.shopping.models.bo.shop.ShopOnlineQueryBO;
import com.ztgf.shopping.models.service.shop.IShopOnlineService;
import com.ztgf.shopping.models.vo.shop.ShopOnlineQueryListVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cms/shopOnlineCms")
@Api(value = "ShopOnlineController", tags = "店铺在线时长")
public class ShopOnlineController {

    @DubboReference
    private IShopOnlineService shopOnlineService;

    @PostMapping(value = "/queryPageList")
    @ApiOperation(value = "在线时长统计列表", notes = "在线时长统计列表")
    public Result<?> queryPageList(ShopOnlineQueryBO bo) {
        Page<ShopOnlineQueryListVO> page = shopOnlineService.queryPageList(bo);
        return new Result<>(page);
    }
}
